﻿namespace GameOn.Web.Entities
{
    /// <summary>
    /// This partial adds extended functionality to the Player entity
    /// </summary>
    public partial class Player
    {
        /// <summary>
        /// Returns the Player's name
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return string.IsNullOrEmpty(Name) ? base.ToString() : Name;
        }
    }
}